<template>
  <div>
    <van-row>
      <van-col span="6"><lef></lef></van-col>
      <van-col span="18">
        <van-row>
          <van-col span="24"><headers></headers></van-col>
        </van-row>
        <van-row>
          <van-col>
            <ul>
              <li v-for="i in worklist" :key="i.id"> <router-link :to="'/workname?id='+i.id">{{i.name}}</router-link> </li>
            </ul>
          </van-col>
        </van-row>
      </van-col>

        </van-row>



  </div>
</template>

<script>
import myaxios from "@/http/axios";
import Lef from "@/components/veiw/lef";
import Headers from "@/components/veiw/headers";

export default {
  name: "worklist",
  components: {Headers, Lef},
  data() {
    return {
      data1: '',
      worklist:[]
    }
  },
  methods: {
    get_worklist(){
      myaxios('workflow','get').then(res=>{
        this.worklist = res.list
      })
    }
  },
  mounted() {
    this.get_worklist()
  }
}
</script>

<style scoped>

</style>